package com.oig.sys.msg.api.factory;

import com.oig.sys.msg.api.NoticeMsgService;
import com.oig.sys.msg.api.fallback.NoticeMsgServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class NoticeMsgServiceFallbackFactory implements FallbackFactory<NoticeMsgService> {

    @Override
    public NoticeMsgService create(Throwable cause) {
        NoticeMsgServiceFallBackImpl noticeMsgServiceFallBack = new NoticeMsgServiceFallBackImpl();
        noticeMsgServiceFallBack.setCause(cause);
        return noticeMsgServiceFallBack;
    }

}
